package com.csu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csu.mall.common.utils.PageUtils;
import com.csu.mall.product.entity.SkuInfoEntity;
import com.csu.mall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

public interface SkuInfoService extends IService<SkuInfoEntity> {
    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> selectSkuInfoBySpuId(Long spuId);

    /**
     * 查询商品详情
     * @param skuId
     * @return
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}
